<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>使用v-model指令实现单选按钮的双向数据绑定</title>
<!--引入Vue库-->
<script src="vue.js"></script>
</head>
<body>	
<div id="app">
    <input type="radio" id="onlinePayment" value="在线支付" v-model="picked">
    <label for="onlinePayment">在线支付</label>
    <br>
    <input type="radio" id="cashOnDelivery" value="货到付款" v-model="picked">
    <label for="cashOnDelivery">货到付款</label>
    <br>
    <span>支付方式为: {{ picked }}</span>
</div>
<script>
  var vm=new Vue({ 
      el: "#app",
      data: {
          picked:'在线支付'
        }
     })
</script>
</body>
</html>
